﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Spawn : MonoBehaviour {

    public GameObject prefab;
    public int Count;
    public float Radius;

    private void Start()
    {
        for(int i=0;i<Count;i++)
        {
            Instantiate(prefab, transform.position + new Vector3(Random.Range(-Radius, Radius), 0, Random.Range(-Radius, Radius) ),new Quaternion());

        }
    }


    // Update is called once per frame
    void Update () {
		
	}
}
